<div style="float: right">
    <ul class="pagination">
        {% if page_dict.now_page == 1 %}
            <li class="disabled"><a href="javascript:void(0)">上一页</a></li>
        {% else %}
            <li><a href="{{ url_dict.before_page_url }}">上一页</a></li>
        {% endif %}

        {% if page_dict.before_page_2 %}
            <li><a href="{{ url_dict.first_page }}">1</a></li>
            <li class="disabled"><a href="#">...</a></li>
        {% endif %}
        {% if page_dict.before_page %}
            <li><a href="{{ url_dict.before_page_url }}">{{ page_dict.before_page }}</a></li>
        {% endif %}
        <li class="active"><a href="{{ url_dict.now_page_url }}">{{ page_dict.now_page }}</a></li>
        {% if page_dict.next_page %}
            <li><a href="{{ url_dict.next_page_url }}">{{ page_dict.next_page }}</a></li>
            {% if page_dict.next_page_2 %}
                <li><a href="javascript:void(0)">...</a></li>
            {% endif %}
            {% if page_dict.next_page == page_dict.page_count %}
            {% else %}
                <li><a href="{{ url_dict.page_count_url }}">{{ page_dict.page_count }}</a></li>
            {% endif %}

            <li><a href="{{ url_dict.next_page_url }}">下一页</a></li>
        {% else %}
            <li class="disabled"><a href="javascript:void(0)">下一页</a></li>
        {% endif %}

    </ul>
</div>